package jp.dodododo.dao;

import java.util.Collection;
import java.util.Map;

import jp.dodododo.dao.exception.SQLRuntimeException;

public interface ExecuteUpdateDao {
	<ENTITY> int insert(ENTITY entity) throws SQLRuntimeException;

	<ENTITY> int update(ENTITY entity) throws SQLRuntimeException;

	<ENTITY> int delete(ENTITY entity) throws SQLRuntimeException;

	<ENTITY> int[] insert(Collection<ENTITY> entities) throws SQLRuntimeException;

	<ENTITY> int[] update(Collection<ENTITY> entities) throws SQLRuntimeException;

	<ENTITY> int[] delete(Collection<ENTITY> entities) throws SQLRuntimeException;

	int executeUpdate(String sql, Map<String, Object> arg) throws SQLRuntimeException;
}
